﻿using Abp.Application.Services;
using System.Threading.Tasks;
using FutureApp.Shop.Dto;
using Abp.Application.Services.Dto;
using System;

namespace FutureApp.Shop
{
    /// <summary>
    /// 商品模型应用服务
    /// </summary>
    public interface IGoodsMouldAppService : IApplicationService
    {
        /// <summary>
        /// 获取商品模型列表
        /// </summary>
        /// <returns>返回商品模型列表</returns>
        Task<ListResultDto<GoodsMouldEntityDto>> GetGoodsMouldList();

        /// <summary>
        /// 获取商品模型
        /// </summary>
        /// <param name="id">商品模型Id</param>
        /// <returns>返回商品模型</returns>
        Task<GoodsMouldEntityDto> GetGoodsMould(Guid id);

        /// <summary>
        /// 获取商品模型
        /// </summary>
        /// <param name="name">商品模型名称</param>
        /// <returns>返回商品模型</returns>
        Task<GoodsMouldEntityDto> GetGoodsMould(string name);

        /// <summary>
        /// 是否存在商品模型
        /// </summary>
        /// <param name="id">商品模型Id</param>
        /// <returns>存在返回<c>true</c>，不存在返回<c>false</c></returns>
        Task<bool> ExistGoodsMould(Guid id);

        /// <summary>
        /// 是否存在商品模型
        /// </summary>
        /// <param name="name">商品模型名称</param>
        /// <returns>存在返回<c>true</c>，不存在返回<c>false</c></returns>
        Task<bool> ExistGoodsMould(string name);

        /// <summary>
        /// 启用商品模型
        /// </summary>
        /// <param name="id">商品模型Id</param>
        Task EnableGoodsMould(Guid id);

        /// <summary>
        /// 禁用商品模型
        /// </summary>
        /// <param name="id">商品模型Id</param>
        Task DisableGoodsMould(Guid id);

        /// <summary>
        /// 创建商品模型
        /// </summary>
        /// <param name="input">参数</param>
        Task CreateGoodsMould(CreateGoodsMouldInput input);

        /// <summary>
        /// 组合商品模型
        /// </summary>
        /// <param name="input">参数</param>
        Task AssembleGoodsMould(AssembleGoodsMouldInput input);
    }
}
